#!/usr/bin/env python
from lib.HandleMysql import *
import sys
reload(sys)
sys.setdefaultencoding('utf-8')

#mysql - stats
def set_stats_conn():    
    conn = HandleMysql('10.5.20.16','58885','ec_stat','L#c8UM5RGh5C','dbwww58com_groupbuy_stats')
    conn.connect()
    return conn

#mysql - open
def set_open_conn():    
    conn = HandleMysql('10.5.20.14','58885','ec_stat','L#c8UM5RGh5C','dbwww58com_groupbuy_open')
    conn.connect()
    return conn

#mysql - groupbuy info
def set_gb_conn():    
    conn = HandleMysql('groupbuyv2-s.db.58dns.org','58885','groupbuy58user_f','jshs&^%as#$sdf','dbwww58com_groupbuy_v2')
    conn.connect()
    return conn